package com.itheima.homework.String类;

public class Demo5 {
    public static void main(String[] args) {
        String [] arr={"test.java","TEST.java","tEst.JAVA"};
        for (int i = 0; i < arr.length; i++) {
            char c = arr[i].charAt(0);
            System.out.println(arr[i]+"第一个字符是"+c);
        }
        for (int i = 0; i < arr.length; i++) {
            String[] splits = arr[i].split("\\.");
            String s = splits[1];
            System.out.println("."+s);
        }
        for (int i = 0; i < arr.length; i++) {
            arr[i]="Test.java";
            System.out.println(arr[i]);
        }
    }
}
